package org.ilovecode.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class ChooserEvent extends Event 
	{
		
		public static const CHOOSER_CLICKED:String = "chooserClicked";
		
		private var _choosenOption:String = "";
		
		public function ChooserEvent(type:String, choosenOption:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			_choosenOption = choosenOption;
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new ChooserEvent(type, choosenOption, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ChooserEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get choosenOption():String {
			return _choosenOption;
		}
		
	}
	
}